
// 添加好友  {"类型":1,"名称":"","id":"25"}
// @ts-ignore
export async function execute(client_id, message_json) {
    let id = Number(message_json["id"]);
    let type = message_json["类型"];
    let characters = G.Characters.get_current_login_characters(client_id);
    switch (type) {
        case 1:
            G.FriendUtils.add_friend(characters,id);
            break;
        case 2:
            G.FriendUtils.add_tmp_friend(characters,id);
            break;
        default:
            break;
    }
}
